package models

import "gorm.io/gorm"

type Order struct {
	gorm.Model
	UserId     int64
	GoodsId    int64
	OrderSn    string
	Total      float32
	PayType    string
	Status     string
	MemberDate int64
}

func (o *Order) CreateOrder() error {
	return DB.Create(&o).Error
}
